*** Settings ***
Resource   ../Common_Head.robot

*** Variables ***


*** Keywords ***
Select Column for FCL Template
    Wait Until Search Finished
    Click    ${Template_FCL_CustomerDataTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${FCL_CD_LaneNumber}    visible    should be    True
    Click    ${FCL_CD_LaneNumber}
    Click    ${FCL_CD_PostalCode}
    Click    ${FCL_CD_Containers45}
    Click    ${FCL_CD_HighValueY/N}
    Click    ${FCL_CD_CargoValueperContainer}
    Click    ${FCL_CD_ReeferInformation}
    Click    ${FCL_CD_Description}
    Click    ${FCL_CD_TBN}
    Click    ${FCL_CD_CustomerTargetInformation} 

    Click    ${Template_OriginLocalChargesTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${OLC_OriginPre-Carriage}    visible    should be    True
    Click    ${OLC_OP_perRCT}
    Click    ${OLC_OP_MethodofLoad}
    Click    ${OLC_OP_LoadingTime}
    Click    ${OLC_HDF_perRCT}
    Click    ${OLC_PLC_perRCT} 
    Click    ${OLC_OOC_perRCT}
    Click    ${OLC_BuyersConsolidationCharges}
    Click    ${OLC_ContainerStorageatOrigin}
    Click    ${OLC_TBN}

    Click    ${Template_RelatedOriginChargesTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${ROC_AdvancedManifest}    visible    should be    True
    Click    ${ROC_THC_perRCT}
    Click    ${ROC_FreeinCharge}
    Click    ${ROC_TransitTime}

    Click    ${Template_OceanTransportChargesTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${OTC_OceanFreightCharges}    visible    should be    True
    Click    ${OTC_OF_45}
    Click    ${OTC_OF_perRCT}
    Click    ${OTC_BBA_perRCT}
    Click    ${OTC_LNS_perRCT}
    Click    ${OTC_CCA_perRCT}
    Click    ${OTC_PSSPeakSeason}
    Click    ${OTC_PCS_perRCT}
    Click    ${OTC_SpecialEquipmentSurcharge}
    Click    ${OTC_HFS_perRCT}
    Click    ${OTC_OOFS_perRCT}
    Click    ${OTC_POL}
    Click    ${OTC_POD}
    Click    ${OTC_SailingInfor}
    Click    ${OTC_FilingRef}
    Click    ${OTC_TBN}

    Click    ${Template_DemurrageDetentionTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${DD_RequestedOriginDemurrage}    visible    should be    True
    Click    ${DD_RequestedOriginDemurrage}
    Click    ${DD_RequestedOriginDetention}
    Click    ${DD_RequestedOriginDem/Det}
    Click    ${DD_DBOriginDemurrage}
    Click    ${DD_DBOriginDetention}
    Click    ${DD_DBOriginDem}
    Click    ${DD_RequestedDestinationDemurrage}
    Click    ${DD_RequestedDestinationDetention}
    Click    ${DD_RequestedDestinationDem}
    Click    ${DD_DBDestinationDemurrage}
    Click    ${DD_DD_DBDestinationDetention}
    Click    ${DD_DBDestinationDem}

    Click    ${Template_RelatedDestinationChargesTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${RDC_TransitTime}    visible    should be    True
    Click    ${RDC_TransitTime}
    Click    ${RDC_FreeOutCharge}
    Click    ${RDC_THC_perRCT}

    Click    ${Template_DestinationLocalChangesTab}
    Wait Until Keyword Succeeds   20x    500ms    Get Element State    ${DLC_Post-LegCharge}    visible    should be    True
    Click    ${DLC_PLC_perRCT}
    Click    ${DLC_HDF_perRCT}
    Click    ${DLC_ODC_perRCT}
    Click    ${DLC_On-CarriageFreight}
    Click    ${DLC_On-CarriageFreight}
    Click    ${DLC_ShipUn-StuffingCharges}
    Click    ${DLC_TBN}
    Click    ${DLC_ContainerStorageatDestination}